nums = eval(input())
pCnt = 0 # 保存正整数的个数
nCnt = 0 # 保存负整数的个数
s = 0 # 求和
for i in range(len(nums)):
    s += nums[i]
    # 分支条件不包含0
    if nums[i] > 0:
        pCnt += 1
    elif nums[i] < 0:
        nCnt += 1
avg = s / len(nums)
print('{},{}'.format(pCnt,nCnt))
print('{:.2f}'.format(avg))
